<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="hmg.common.CommonUtils"%>
<%@ page import="hmg.common.ValueHolder"%>
<%@ page import="hmg.vo.BoardVO"%>
<%-- 
    JSP Name : jspName.jsp
    Description : 설명을 기술합니다.
    author Kim hyung soo
    since 2012. 9. 6.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 9. 6.     Kim hyung soo     최초 생성
--%>
<%
    BoardVO news = (BoardVO) request.getAttribute("NewsInfo");
    BoardVO prevNews = (BoardVO) request.getAttribute("PrevNewsInfo");
    BoardVO nextNews = (BoardVO) request.getAttribute("NextNewsInfo");
    boolean isHTML = false;
    String ogImageURL = "";

    String listID = request.getParameter("listID");
    String currPage = CommonUtils.getParameter(request.getParameter("page"), "1");
    String compType = CommonUtils.getParameter(request.getParameter("compType"), "");

    if (news.getHTMLState().equals("Y") == true)
        isHTML = true;

    ogImageURL = ValueHolder.SERVER_DOMAIN + ValueHolder.DEFAULT_IMAGE_PATH;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="ko" xml:lang="ko" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>채용정보 | 현대자동차그룹</title>
<meta name="description" content="현대자동차그룹 계열사별 채용정보 게시판" />
<meta name="keywords" content="현대자동차그룹 채용정보, 현대차그룹 채용정보, 채용정보, 채용소식, 채용뉴스" />
<%@ include file="/WEB-INF/jsp/web/kor/include/headerRecruit.jspf" %>
<script type="text/javascript">
//<![CDATA[

$(function(){
    $('#btn-top').click ( function () {
        $('.jspDrag').css({'top':'0px'});
        $('.jspPane').css({'top':'0px'});
    });
    $('.menu_btn .open').click ( function () {
        $('#btn-top').animate({"left":"948px"});
    });
    $('.menu_btn .close').click ( function () {
        $('#btn-top').animate({"left":"1108px"});
    });
});

function fn_go_to_list() {
    document.location.href = "./RecruitList.do?listID=<%= listID %>&compType=<%= compType %>&page=<%= currPage %>";
}

function fn_print_news() {
    window.open('./RecruitViewPrint.do?listID=<%= news.getListID() %>','현대자동차그룹공식홈페이지','scrollbars=yes, toolbar=yes, width=840, height=650');
}

//]]> 
</script>
<meta property="og:type"        content="article" />
<meta property="og:url"         content="<%= ValueHolder.SERVER_DOMAIN + request.getAttribute("javax.servlet.forward.request_uri") + "?" + request.getQueryString() %>" />
<meta property="og:title"       content="<%= news.getTitle() %>" />
<meta property="og:description" content="<%= CommonUtils.getPlainText(news.getWebContent(), true, 100).replace("\n", " ").trim() %>" />
<meta property="og:image"       content="<%= ogImageURL %>" />
</head>
<body>
    <!--wrap-->
    <div id="wrap">
        <!-- skip navigation -->
        <div id="skipnavition">
            <a href="#gnb">메뉴바로가기</a><a href="#content">본문바로가기</a>
        </div>
        <!--// skip navigation -->

        <hr />

        <!-- header-->
        <%@ include file="/WEB-INF/jsp/web/kor/include/leftEtc.jspf" %>
        <!--//header-->

        <hr />
    
        <!--container-->
        <div id="container">
            <div id="btn-top"><a href="#header" onclick="return false;"><img src="/hmg/images/web/kor/common/move-top3.png" alt="TOP" /></a></div>
            <div class="scroll-pane">
                <!--contents-->
                <div id="content">
                    <!--recruit-->
                    <div class="recurit_Wrap">
                        <h2><img src="/hmg/images/web/kor/job/recruit_title.png" alt="인재채용" /></h2>
                        <h3><img src="/hmg/images/web/kor/job/recruitInfo_title.png" alt="채용정보 - 현대자동차그룹 계열사의 채용정보를 모았습니다" /></h3>
        
                        <!-- 내용 -->
                        <div class="recurit_contents">
                            <div class="pageLocation">
                                <ul>
                                    <li class="home"><a href="/hmg/web/kor/Main.do"><img src="/hmg/images/web/kor/common/location_home.gif" alt="홈" /></a></li>
                                    <li><a href="/hmg/web/kor/job/JobSubMain.do">인재채용</a></li>
                                    <li class="nowPage"><a href="./RecruitList.do">채용정보</a></li>
                                </ul>
                            </div>
            
                            <div class="link_box">
                                <ul>
                                    <li><a href="/hmg/web/kor/job/tln/Talent.do"><img src="/hmg/images/web/kor/job/quickmenu_img01.png" alt="인재상소개"  /></a></li>
                                    <li><a href="/hmg/web/kor/job/int/JobIntroductionMain.do"><img src="/hmg/images/web/kor/job/quickmenu_img02.png" alt="직무 소개"  /></a></li>
                                    <li><a href="/hmg/web/kor/job/itv/JobInterviewList.do"><img src="/hmg/images/web/kor/job/quickmenu_img03.png" alt="직무 인터뷰"  /></a></li>
                                    <li><a href="/hmg/web/kor/job/grp/GroupPeopleList.do"><img src="/hmg/images/web/kor/job/quickmenu_img04.png" alt="그룹사람들"  /></a></li>
                                    <li class="last"><a href="/hmg/web/kor/job/rct/RecruitList.do"><img src="/hmg/images/web/kor/job/quickmenu_img05.png" alt="채용정보"  /></a></li>
                                </ul>
                            </div>

                            <div class="recruit_view">
                                <div class="view_Icon">
                                    <a href="javascript:fn_share_facebook(document.location, '<%= news.getTitle() %>');"><img src="/hmg/images/web/kor/common/icon_facebook.gif" alt="페이스북" /></a>
                                    <a href="javascript:fn_share_twitter(document.location, '<%= news.getTitle() %>');"><img src="/hmg/images/web/kor/common/icon_twitter.gif" alt="트위터" /></a>
                                    <a href="javascript:fn_print_news();"><img src="/hmg/images/web/kor/btn/btn_print.gif" alt="Print" /></a>
                                    <a href="#" onclick="javascript:fn_font_size(1);"><img src="/hmg/images/web/kor/btn/text_Sizeup.gif" alt="글자 크게" /></a>
                                    <a href="#" onclick="javascript:fn_font_size(-1);"><img src="/hmg/images/web/kor/btn/text_Sizedown.gif" alt="글자 작게" /></a>
                                </div>
                                <div class="view_table03">
                                    <table summary="채용정보 보기 테이블">
                                        <caption>채용정보 보기</caption>
                                        <colgroup>
                                            <col width="6%" /><col width="10%" /><col width="10%" /><col width="20%" /><col width="10%" /><col width="22%" /><col width="6%" /><col width="16%" />
                                        </colgroup>

                                        <tbody>
                                            <tr>
                                                <th colspan="8" class="title"><%= news.getTitle() %></th>
                                            </tr>
                                            <tr>
                                                <th scope="row">구분</th>
                                                <td class="career"><%= news.getListName() %></td>
                                                <th scope="row">모집회사</th>
                                                <td><%= news.getCompName() %></td>
                                                <th scope="row">모집기간</th>
                                                <td class="period"><%= news.getEffectDate() %> - <%= news.getExpireDate() %></td>
                                                <th scope="row">마감</th>
                                                <td class="day">
<%
    if (news.getDday().equals("-1") == true)
        out.println("                       <span>마감</span>");
    else
        out.println("                       D-" + news.getDday() + "일 남음");
%>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="8" class="last">
                                                    <%= CommonUtils.getWebText(news.getWebContent(), isHTML) %>
<%  if (news.getLink1() != null) { %>
                                                    <p class="recruit_btn"><a href="<%= news.getLink1() %>" target="_BLANK"><img src="/hmg/images/web/kor/btn/btn_recruit.gif" alt="채용사이트 바로가기" /></a></p>
<%  } %>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
            
                                <div class="view_table02">
                                    <table summary="채용정보 보기 목록 테이블">
                                        <caption>채용정보 보기 목록</caption>
                                        <colgroup>
                                            <col width="12%" />
                                            <col width="88%" />
                                        </colgroup>
                                        <tbody>
                                            <tr>
                                                <th><img src="/hmg/images/web/kor/grn/prevList.gif" alt="이전글"/></th>
                                                <td style="width:94%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;">
<%
    if (prevNews != null)
        out.println("                                    <a href=\"./RecruitView.do?listID=" + prevNews.getListID() + "&compType=" + compType + "&page=" + currPage + "\">" + prevNews.getCompName() + " " + prevNews.getTitle() + "</a>");
    else
        out.println("                                    이전 글이 존재하지 않습니다.");
%>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th class="last"><img src="/hmg/images/web/kor/grn/nextList.gif" alt="다음글"/></th>
                                                <td class="last" style="width:94%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;">
<%
    if (nextNews != null)
        out.println("                                    <a href=\"./RecruitView.do?listID=" + nextNews.getListID() + "&compType=" + compType + "&page=" + currPage + "\">" + nextNews.getCompName() + " " + nextNews.getTitle() + "</a>");
    else
        out.println("                                    다음 글이 존재하지 않습니다.");
%>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
            
                                <div class="btnWrap">
                                    <div class="align_right">
                                        <a href="javascript:fn_go_to_list();"><img src="/hmg/images/web/kor/btn/btn_list02.gif" alt="목록" /></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--// 내용 -->
                    </div>
                    <!--//recruit-->
                </div>
            </div>
        </div>

        <hr />

        <!--footer-->
        <%@ include file="/WEB-INF/jsp/web/kor/include/footerEtc.jspf" %>
        <!--//footer-->
    
    </div>
    <!--//wrap-->
</body>
</html>